<?php 
//echo "<pre>";print_r($all_post);echo "</pre>";
foreach ($all_topic as $key => $topic) {
?>
							<tr class="odd gradeX">
								<td>
									<a target="_blank" href="topic/detail/<?php echo $topic['topic_id']; ?>"><?php echo $topic['topic_excerpt']; ?></a>
								</td>
								<td>
									 <?php echo $topic['username']; ?>
								</td>
								<td>
									 <?php 
									 	if($topic['status'] == '1'){
									 		echo $this->lang->line('topic_status_on');
									 	}
									 	else{//草稿
									 		echo '<span class="label label-sm label-danger">'.$this->lang->line('topic_status_off').'</span>';
									 	}
									 ?>
								</td>
								<td class="center">
									 <?php echo $topic['modified_time']; ?>
								</td>
								<td>
									<a class="btn default btn-xs purple" href="/backyard/topic_modify/<?php echo $topic['topic_id']; ?>"><i class="fa fa-edit"></i> Edit</a>
									<a class="btn default btn-xs black" href="javascript:deleteTopic(<?php echo $key; ?>,<?php echo $topic['topic_id']; ?>);"><i class="fa fa-trash-o"></i> Delete<span class="delete_loading" id="delete_loading_<?php echo $key; ?>"><img src="/assets/img/loading-spinner-default.gif"/></span></a>
								</td>
							</tr>
<?php 
}
?>